/**
* 作者: lby
* 日期: 2024-11-20 14:05:47
* 备注: 子嗣职业表
*/
package com.motu.monstercity.server.game.commondata.child;

import io.vertx.core.json.JsonObject;

public class ChildCareerModel {
	protected int id; // id (职业id)
	protected String career; // 职业名称
	protected String childhoodHead; // 幼年头部
	protected String childhoodBody; // 幼年身体
	protected String adultHead; // 成年头部
	protected String adultBody; // 成年身体

	public ChildCareerModel() {
	}

	public ChildCareerModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		career = obj.containsKey("career") ? obj.getString("career") : "";
		childhoodHead = obj.containsKey("childhood_head") ? obj.getString("childhood_head") : "";
		childhoodBody = obj.containsKey("childhood_body") ? obj.getString("childhood_body") : "";
		adultHead = obj.containsKey("adult_head") ? obj.getString("adult_head") : "";
		adultBody = obj.containsKey("adult_body") ? obj.getString("adult_body") : "";
	}

	public int getId() {
		return id;
	}

	public String getCareer() {
		return career;
	}

	public String getChildhoodHead() {
		return childhoodHead;
	}

	public String getChildhoodBody() {
		return childhoodBody;
	}

	public String getAdultHead() {
		return adultHead;
	}

	public String getAdultBody() {
		return adultBody;
	}

}
